import Mock from 'mockjs'

/**
 * 1. 数据模拟
 * */
let roles = Mock.mock({
  "list|5":[
    {
       "id|+1":1,
       "role_name":"@first",
       "is_used|1":[0,1]
    }
  ]
})

let resMsg = {
   flag:true
}


let superTypes = [
  {
     id:1,
     display:'部门'
  } ,{
    id:2,
    display:'审核状态'
  }
]


/**
 *  2. ajax拦截
 * */
Mock.mock("http//test.org/system/role/list","get",roles.list)
Mock.mock("http//test.org/system/role/save","get",resMsg)
Mock.mock("http//test.org/system/dict/super","get",superTypes)
